/**
 * Copyright (c) 2018-2028, HQY 胡庆一 (215218393@qq.com).
 * <p>
 * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.gnu.org/licenses/lgpl.html
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.ocm.product.dto;

import com.ocm.product.entity.AttrValue;
import com.ocm.product.entity.Spu;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 数据传输对象实体类
 *
 * @author HQY
 * @since 2021-11-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SpuDTO extends Spu {
	private static final long serialVersionUID = 1L;

	@NotEmpty(message = "销售规格不允许为空")
	private List<SkuDTO> skuData;

	@NotEmpty(message = "销售规格不允许为空")
	private List<Long> saleAttrId;

	@NotEmpty(message = "商品属性不允许为空")
	private List<AttrValue> attr;

}
